import request from '@/utils/request'

export function page(params) {
  return request({
    url: '/admin/article/index',
    method: 'get',
    params
  })
}

export function create(data){
  return request({
    url:'/admin/article/create',
    method:'post',
    data
  })
}

export function update(data){
  return request({
    url:'/admin/article/update',
    method:'post',
    data
  })
}

export function remove(id){
  return request({
    url:'/admin/article/remove',
    method:'get',
    params:{id}
  })
}

